- model_class = Task
.page-header
  %h1= t '.title', :default => model_class.model_name.human.titleize
%dl.dl-horizontal
  %dt
    %strong
      = model_class.human_attribute_name(:title)
      \:
  %dd= @task.title
  %dt
    %strong
      = model_class.human_attribute_name(:description)
      \:
  %dd= @task.description
  %dt
    %strong
      = model_class.human_attribute_name(:status)
      \:
  %dd= @task.status
= link_to t('.back', :default => t("helpers.links.back")),
  tasks_path, :class => 'btn btn-default'
= link_to t('.edit', :default => t("helpers.links.edit")),
  edit_task_path(@task), :class => 'btn btn-default'
= link_to t('.destroy', :default => t("helpers.links.destroy")),
  task_path(@task),
  :method => 'delete',
  :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
  :class => 'btn btn-danger'
